<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class AddFirstCommentToTalentTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::table('talent', function (Blueprint $table) {
            $table->tinyInteger('first_gzdl')->default(0)->comment('一面-工作动力');
            $table->tinyInteger('first_zyjn')->default(0)->comment('一面-专业技能');
            $table->tinyInteger('first_xmjy')->default(0)->comment('一面-项目经验');
            $table->tinyInteger('first_xxcx')->default(0)->comment('一面-学习创新');
            $table->tinyInteger('first_zxls')->default(0)->comment('一面-执行落实');
            $table->tinyInteger('first_total')->default(0)->comment('一面-总分');
            $table->string('first_comment')->default('')->comment('一面-其他评语');
            $table->string('first_conclusion')->default('')->comment('一面-面试结论');
            $table->string('first_interviewer')->default('')->comment('一面-面试官');
            $table->string('first_batch')->default('')->comment('一面-面试批次');

            $table->string('second_interviewer')->default('')->comment('二面-面试官');
            $table->tinyInteger('is_system_in')->default(0)->comment('是否为系统内人员');
            $table->string('system_in_level')->default('')->comment('系统内岗级');
            $table->string('recommend_level')->default('')->comment('建议岗级');
            $table->string('ability')->default('')->comment('能力区间');
            $table->string('recommend_salary')->default('')->comment('建议薪酬');
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::table('talent', function (Blueprint $table) {
            //
        });
    }
}
